template <typename T>
int cmp(const T &tA, const T &tB){
	if(tA > tB)
		return 1;
	else if(tA == tB)
		return 0;
	else
		return -1;
}